package com.henry.feign.service;

import com.henry.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-08-22 11:51
 */
@Component
@FeignClient(
        value = "stu-provider",
        // path 相当于 目标服务控制层的  requestMapping 指定的路径
        path = "stu"
)
public interface StuFeignService {

    @GetMapping("getAll")
    public R getAll();
}
